public class DarrInt {
    private int [] data = null;
    private int length = 0;

    public DarrInt() {}
    public DarrInt(int ... inputData) {
        for (int n : inputData) {
            this.append(n);
        }
    }

    public DarrInt append(int inputData) {
        int [] newData = new int[length + 1];
        if (data != null)
            System.arraycopy(data, 0, newData, 0, length);
        newData[length++] = inputData;
        data = newData;
        return this;
    }

    public DarrInt travel() {
        for (int n : this.data) {
            System.out.printf("%d ", n);
        }
        System.out.println();

        return this;
    }
}
